<template>
  <div class="xtx-bread-item">
    <RouterLink :to="to" v-if="to"> <slot /></RouterLink>
    <span v-else> <slot /> </span>
    <!-- <i class="iconfont icon-angle-right"></i> -->
  </div>
</template>

<script>
import {} from 'vue'
export default {
  name: 'XtxBreadItem',
  props: {
    to: {
      type: [String, Object]
    }
  },
  setup() {
    return {}
  }
}
</script>
<style scoped lang="less"></style>
